//
//  XXTripHeaderView.m
//  TravelFollowYourHeart
//
//  Created by 鲁万玺 on 2017/12/27.
//  Copyright © 2017年 Lwx. All rights reserved.
//

#import "XXTripHeaderView.h"
@interface XXTripHeaderView()

@property (weak, nonatomic) IBOutlet UIButton *dayBtn;

@end

@implementation XXTripHeaderView

- (void)awakeFromNib
{
    [super awakeFromNib];
    self.backgroundColor = [UIColor whiteColor];
    [self.dayBtn setCornerRadius:25.0/2];
    [self.dayBtn setBorderWidth:0.5 borderColor:[UIColor themeColor]];
    [self.dayBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected];
}
- (IBAction)addBtnClick:(UIButton *)sender
{
    
}
- (IBAction)seeClick:(UIButton *)sender
{
    self.dayBtn.selected = !self.dayBtn.selected;
    if (self.dayBtn.selected)
    {
        self.dayBtn.backgroundColor = [UIColor themeColor];
    }
    else
    {
        self.dayBtn.backgroundColor = [UIColor whiteColor];
    }
}

@end
